#include "task_port.hpp"
#include <vector>

#include <glog/logging.h>
task_port::task_port(/* args */)
{
}

task_port::~task_port()
{
}
void task_port::parse_cmd(std::string type,std::string msg)
{
    std::vector<std::string> vals;
    std::string temp;
    for (size_t i = 5; i < msg.size(); i++)
    {
        if (msg[i] == ','||msg[i] == '\r')
        {
            /* code */
            
            vals.push_back(temp);
            temp = "";
            continue;
        }
        temp +=msg[i];  // 每次取,之前的
        
    }
    
    auto ret = check_ip(temp.c_str());
    VLOG(0)<<"check_ip = "<<temp;
    
}
